//package org.example.tomandjerry;
//
//import java.io.PrintStream;
//
//public abstract class Animal {
//    public String name;//动物的名称
//
//    public Integer count = 0;//表示被打的次数
//
//    public abstract void use(Tool tool, PrintStream ps, Animal ...animal);//动物揍动物的行为
//
//    public String print(Tool tool, Animal ...animal) {
//        String p = this.name + " 拿" + tool.getAction() + "用的" + tool.getWeight() + "g的" + tool.getMaterial() + "的" + tool.getTool() + " 揍 " + animal[0].name;
//        return animal.length == 1 ? p : (p += "，不小心揍成了" + animal[animal.length-1].name);
//    }
//}
